<template>
    <div>
        1
        <p v-for="(value, name, index) in state.obj" :key="index">
            {{ value }}-{{ name }}-{{ index }}
        </p>
    </div>
</template>

<script lang="ts">
export default { name: 'Demo' }
</script>

<script lang="ts" setup>
import { getCurrentInstance, ComponentInternalInstance, reactive, ref, nextTick, onMounted, useAttrs, useSlots } from 'vue'

// const slots = useSlots()
// const attrs = useAttrs()
// const emits = defineEmits()
const { proxy }:any = getCurrentInstance() as ComponentInternalInstance

const state = reactive({
    obj: { key1: 'value1' },
})

// defineExpose({

// })
</script>
<style lang="scss" scoped>

</style>
